deploy: Fix path to aboot.cfg in BLS files
authorAlexander Larsson <alexl@redhat.com>
Wed, 6 Aug 2025 10:16:34 +0000 (12:16 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 6 Aug 2025 10:47:17 +0000 (12:47 +0200)
The change in https://github.com/ostreedev/ostree/pull/3413/ was meant
to change when the abootcfg option is set in the BLS file.  However,
it also changed the value of this key, using the wrong directory
(bootcsumdir instead of /usr/lib/ostree-boot).

This means that during update, aboot-update gets the wrong path to the
config and cannot correctly write the aboot partition.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
src/libostree/ostree-sysroot-deploy.c

index bee899a311471b551d1ab2a697b9e5227b039391..e8f3ece5df7de91f4400a3537fba12404700972c 100644 (file)
@@ -2134,7 +2134,8 @@ install_deployment_kernel (OstreeSysroot *sysroot, int new_bootversion,
       g_autofree char *aboot_relpath = g_strconcat ("/", bootcsumdir, "/", aboot_fn, NULL);
       ostree_bootconfig_parser_set (bootconfig, "aboot", aboot_relpath);
 
-      g_autofree char *abootcfg_relpath = g_strconcat ("/", bootcsumdir, "/aboot.cfg", NULL);
+      g_autofree char *abootcfg_relpath
+          = g_strconcat ("/", deployment_dirpath, "/usr/lib/ostree-boot/aboot.cfg", NULL);
       ostree_bootconfig_parser_set (bootconfig, "abootcfg", abootcfg_relpath);
     }